<?php
		include("dbconn.inc");
		session_start();
		$adminuser=$_SESSION["adminuser"];
		$adminid=$_SESSION["adminid"];
		$admindb=$_SESSION["admindb"];
		
	if(session_is_registered("admindb") )
	{

			//$no=$_SESSION["maxno"];
			//$sql="update log1 set outdate = now() where no= $no and userid='$user'";
			//$rs=mysql_query($sql);
			//mysql_close();
			session_destroy(); 
			header("location:index.html");
		}
		else
		{
			$errormsg="Your Session is Expired..Please Login Again";
			header("location:index.php?error=$errormsg");
			
		}	
		
		
?>
